[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
##############################################################################
###+-------------+############################################################
#+-| SET CONFIRM |---------------------------------------------------------+##
#| +-------------+ The SET CONFIRM controls the status of the confirm flag |##
#+-------------------------------------------------------------------------+##
##############################################################################
##############################################################################
#+--| Syntax |---------------------+##########################################
#| SET CONFIRM <ON || OFF> |##########################################
#+---------------------------------+##########################################
##############################################################################
##############################################################################
###########+---| Description |------------------------------------+###########
###########| ON |###########
###########| |###########
###########| The enter key must be pressed to advance to the next |###########
###########| input field when using an EDIT or a READ/GET. |###########
###########| ---------------------------------------------------- |###########
###########| OFF |###########
###########| |###########
###########| Cursor will automatically advance to the next input |###########
###########| field when using a READ/GET or EDIT. The default |###########
###########| status for the confirm flag is OFF. |###########
###########+------------------------------------------------------+###########
##############################################################################
##############################################################################
#########+--| Example 1 |-------------------------------------------+#########
#########| * SET CONFIRM works at the time of the GET, |#########
#########| * not of the READ. Therefore, different fields |#########
#########| * may have different "confirm" values. |#########
#########| |#########
#########| SET CONFIRM ON |#########
#########| @ 3,locate_col() GET zz31->hh_val |#########
#########| SET CONFIRM OFF |#########
#########| @ 4,locate_col() GET zz31->ii_val |#########
#########| READ |#########
#########+----------------------------------------------------------+#########
##############################################################################
##############################################################################
#########+--| Example 2 |-------------------------------------------+#########
#########| * Force a "confirmation" of a GET field using |#########
#########| * a GET filter. Have the GET filter return enter. |#########
#########| |#########
#########| FUNCTION UINT get_filter |#########
#########| IF lastkey() = &K_F10 && need special help? |#########
#########| DO special_process |#########
#########| RETURN &K_ENTER && return an enter key |#########
#########| ENDIF |#########
#########| RETURN lastkey() |#########
#########| ENDPRO |#########
#########| |#########
#########| {...} |#########
#########| SET CONFIRM ON |#########
#########| @ r[x],r[x+1] GET d->xx3b47 FILTER get_filter() |#########
#########| |#########
#########| READ && the filter function |#########
#########| && can return an |#########
#########| && enter key. |#########
#########+----------------------------------------------------------+#########
##############################################################################
See Also:
GET
READ
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson